<!DOCTYPE html>
<html>
    <head>
        <?php echo $this->loadTemplate('share' . DS . 'meta.phtml'); ?>
        <script src="<?php echo $this->pubUrl ?>share/js/jquery/jquery.validate.js"></script>
        <script src="<?php echo $this->skin_url?>frontend/js/min.js"></script>
        <script>
        function ajaxFunction(id,url)
        {
            $.ajax({
               'url':url+'/id/'+id
            });
        }
        $(function(){
            $('.support').bind( "click",function(){
                    ajaxFunction($(this).attr('rel'),'/article/comment/updateSupport');
                    var span =  $(this).children('span');
                    span.html(parseInt(span.html())+1);
                    $(this).unbind('click').removeClass().next('a').unbind('click').removeClass();
            })
            $('.opposition').bind('click',function(){
                ajaxFunction($(this).attr('rel'),'/article/comment/updateOpposition');
                var span =  $(this).children('span');
                    span.html(parseInt(span.html())+1);
                    $(this).unbind('click').removeClass().prev('a').unbind('click').removeClass();
            })
         })
         </script>
    </head>
    <body>
    <?php echo $this->loadTemplate('share' . DS . 'header.phtml') ?>
    <?php echo $this->loadBlock('share_navigation') ?>
    <div class="public_width news">
        <div class="left">
            <?php echo $this->loadBlock('left_up') ?>
            <?php echo $this->loadBlock('comment') ?>
            <div class="message-container">
                <?php echo  $this->loadTemplate('share' . DS . 'message.phtml'); ;?>
            </div>
            <?php echo $this->loadTemplate('share' . DS . 'commentform.phtml') ?>
            
            <?php echo $this->loadBlock('left_bottom') ?>
        </div>
        <div class="right">
            <!--            热点推荐--> <!--E-BOOK展示-->
            <?php echo $this->loadBlock('right') ?>
        </div>
    </div>
    <?php echo $this->loadTemplate('share' . DS . 'footer.phtml'); ?>
    </body>
</html>